//
//  JJMessageBody.h
//  swiftProject
//
//  Created by yangjian on 2021/12/27.
//

#import <Foundation/Foundation.h>
#import <HyphenateChat/HyphenateChat.h>
NS_ASSUME_NONNULL_BEGIN


static NSString *jjMessageBody_event = @"JJMessageBody";
static NSString *jjMessageBody_event_separator = @"|";

typedef enum : NSUInteger {
    JJMessageBodyTypeNone = 0,
    JJMessageBodyTypeBigEmoji = 1 << 0,
} JJMessageBodyType;


@interface JJMessageBody : NSObject

@property (nonatomic)JJMessageBodyType type;

+ (JJMessageBodyType)bodyTypeFromCustomEvent:(NSString *)event ;

+ (instancetype)bodyFromEMCustomMessageBody:(EMCustomMessageBody *)customBody;

- (NSMutableDictionary *)fetchCustomExt;

- (EMCustomMessageBody *)covertCustomMessageBody;

@end

NS_ASSUME_NONNULL_END
